package com.wh.user.controller;

import com.wh.basic.vo.AjaxResult;
import com.wh.user.dto.UserDto;
import com.wh.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;

    @PostMapping("/register/phone")
    public AjaxResult regisPhone(@RequestBody UserDto userDto){
        userService.regisPhone(userDto);
        return AjaxResult.me();
    }

}
